package com.ruoyi.zhgd.controller;

import cn.dev33.satoken.annotation.SaCheckLogin;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.zhgd.domain.vo.NAsphaltOutputSummaryVo;
import com.ruoyi.zhgd.service.NAsphaltOutputSummaryService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 沥青产量统计汇总控制器
 *
 * @author tll
 * @date 2023-10-12
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/zhgd/asphaltOutputSummary")
public class NAsphaltOutputSummaryController extends BaseController {
    private final NAsphaltOutputSummaryService nAsphaltOutputSummaryService;

    /**
     * 产量统计报表分页查询
     * @param params
     * @param pageQuery
     * @return
     */
    @SaCheckLogin
    @GetMapping("/page")
    public TableDataInfo<NAsphaltOutputSummaryVo> page(@RequestParam Map<String, Object> params, PageQuery pageQuery) {
        return nAsphaltOutputSummaryService.page(params, pageQuery);
    }

}
